package com.ruben.simplesentinel.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.ruben.simplesentinel.service.IHelloWorldService;
import org.springframework.stereotype.Service;

/**
 * @author <achao1441470436@gmail.com>
 * @since 2021/6/29 0029 22:44
 */
@Service
public class HelloWorldServiceImpl implements IHelloWorldService {

    @SentinelResource("HelloWorld")
    @Override
    public void helloWorld() {
        // 资源中的逻辑
        System.out.println("hello world");
    }

}
